﻿namespace WMS6.Web.BaseInfoServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DataContract(Name="LocAddrInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity")]
    public class LocAddrInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private string AddressField;
        [OptionalField]
        private string CityField;
        [OptionalField]
        private string ContactNameField;
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [OptionalField]
        private string EmailField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string FaxField;
        [OptionalField]
        private string IsActiveField;
        [OptionalField]
        private string IsWeekendWorkField;
        [OptionalField]
        private string LocAddrIDField;
        [OptionalField]
        private string LocSiteIDField;
        [OptionalField]
        private string ProvinceField;
        [OptionalField]
        private string RemarkField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private string TelephoneField;
        [OptionalField]
        private byte[] TsField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string WhIDField;
        [OptionalField]
        private string ZipField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public string Address
        {
            get
            {
                return this.AddressField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AddressField, value))
                {
                    this.AddressField = value;
                    this.RaisePropertyChanged("Address");
                }
            }
        }

        [DataMember]
        public string City
        {
            get
            {
                return this.CityField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CityField, value))
                {
                    this.CityField = value;
                    this.RaisePropertyChanged("City");
                }
            }
        }

        [DataMember]
        public string ContactName
        {
            get
            {
                return this.ContactNameField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ContactNameField, value))
                {
                    this.ContactNameField = value;
                    this.RaisePropertyChanged("ContactName");
                }
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public string Email
        {
            get
            {
                return this.EmailField;
            }
            set
            {
                if (!object.ReferenceEquals(this.EmailField, value))
                {
                    this.EmailField = value;
                    this.RaisePropertyChanged("Email");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string Fax
        {
            get
            {
                return this.FaxField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FaxField, value))
                {
                    this.FaxField = value;
                    this.RaisePropertyChanged("Fax");
                }
            }
        }

        [DataMember]
        public string IsActive
        {
            get
            {
                return this.IsActiveField;
            }
            set
            {
                if (!object.ReferenceEquals(this.IsActiveField, value))
                {
                    this.IsActiveField = value;
                    this.RaisePropertyChanged("IsActive");
                }
            }
        }

        [DataMember]
        public string IsWeekendWork
        {
            get
            {
                return this.IsWeekendWorkField;
            }
            set
            {
                if (!object.ReferenceEquals(this.IsWeekendWorkField, value))
                {
                    this.IsWeekendWorkField = value;
                    this.RaisePropertyChanged("IsWeekendWork");
                }
            }
        }

        [DataMember]
        public string LocAddrID
        {
            get
            {
                return this.LocAddrIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LocAddrIDField, value))
                {
                    this.LocAddrIDField = value;
                    this.RaisePropertyChanged("LocAddrID");
                }
            }
        }

        [DataMember]
        public string LocSiteID
        {
            get
            {
                return this.LocSiteIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LocSiteIDField, value))
                {
                    this.LocSiteIDField = value;
                    this.RaisePropertyChanged("LocSiteID");
                }
            }
        }

        [DataMember]
        public string Province
        {
            get
            {
                return this.ProvinceField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ProvinceField, value))
                {
                    this.ProvinceField = value;
                    this.RaisePropertyChanged("Province");
                }
            }
        }

        [DataMember]
        public string Remark
        {
            get
            {
                return this.RemarkField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RemarkField, value))
                {
                    this.RemarkField = value;
                    this.RaisePropertyChanged("Remark");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string Telephone
        {
            get
            {
                return this.TelephoneField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TelephoneField, value))
                {
                    this.TelephoneField = value;
                    this.RaisePropertyChanged("Telephone");
                }
            }
        }

        [DataMember]
        public byte[] Ts
        {
            get
            {
                return this.TsField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TsField, value))
                {
                    this.TsField = value;
                    this.RaisePropertyChanged("Ts");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }

        [DataMember]
        public string Zip
        {
            get
            {
                return this.ZipField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ZipField, value))
                {
                    this.ZipField = value;
                    this.RaisePropertyChanged("Zip");
                }
            }
        }
    }
}

